import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
import { PureComponent } from "react";
import SelectBox from "devextreme-react/select-box";
import "./_style.less";
/***
 * ## 基于 DevExpress select Box 的二封组件
 * 引入方式：import DevSelect from '@/cpas-ui/components-ui/express-components/DevSelect';
 */
export class DevSelectSimple extends PureComponent {
    constructor(props) {
        super(props);
        console.log("devSelect-simple--props --", props);
    }
    render() {
        return (_jsx(_Fragment, { children: _jsx("div", { children: _jsx(SelectBox, { items: this.props.items, defaultValue: this.props.defaultValue, placeholder: this.props.placeholder, showClearButton: this.props.showClearButton, onChange: this.props.onChange, onValueChanged: this.props.onValueChanged }) }) }));
    }
}
export class DevSelect extends PureComponent {
    static simple;
    constructor(props) {
        super(props);
        console.log("devSelect-dataSource--props --", props);
    }
    render() {
        return (_jsx("div", { children: _jsx(SelectBox, { dataSource: this.props.dataSource, displayExpr: this.props.displayExpr, placeholder: this.props.placeholder, showClearButton: this.props.showClearButton, valueExpr: this.props.valueExpr, defaultValue: this.props.defaultValue, onChange: this.props.onChange, onValueChanged: this.props.onValueChanged }) }));
    }
}
export default DevSelect;
